package com.yswy.app.dto.domianVo;

import com.yswy.domain.entity.ManagementMenu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("个人中心菜单")
public class ManagementMenuVo {

    @ApiModelProperty("名字")
    private String title;
    @ApiModelProperty("图片")
    private String imgUrl;
    @ApiModelProperty("是否需要登录 0 不需要  1 需要")
    private String isLogin;
    @ApiModelProperty("跳转页面")
    private String goToPage;
    @ApiModelProperty("跳转页面")
    private String goToType;
    public ManagementMenuVo(ManagementMenu managementMenu) {
        this.title = managementMenu.getTitle();
        this.imgUrl = managementMenu.getImgUrl();
        this.isLogin = managementMenu.getIsLogin();
        this.goToPage = managementMenu.getGoToPage();
        this.goToType=managementMenu.getGoToType();
    }
}
